/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "../工作区/工作区.h"




class C_照壁文件页面 : public C_Widget {

public:
	C_照壁文件页面(S_UI渲染环境& ctx);
	~C_照壁文件页面();

	ui_绘制模板_预设图形	m_背景绘制;
	ui_绘制模板_纹理		m_画心绘制;
	ui_绘制模板_预设图形	m_印章绘制;
	ui_绘制模板_行文本绘制	m_文本绘制;
	ui_绘制模板_图标		m_图标绘制;

	S_纹理集*				m_画心纹理;

	C_Widget* m_海报;
	std::vector<C_Widget*> m_最近文件;


	C_Widget* m_捐款按钮_B站;
	C_Widget* m_捐款按钮_爱发电;
	C_Widget* m_教程视频_B站;
	C_Widget* m_教程视频_Youtube;

	void f_构建最近文件组件();

};






class C_照壁示例页面 : public C_Widget {

public:
	C_照壁示例页面(S_UI渲染环境& ctx);
	~C_照壁示例页面();

	S_Props m_按钮;


	//S_UI创建环境			m_UICtx;
	ui_绘制模板_预设图形	m_背景绘制;
	ui_绘制模板_预设图形	m_印章绘制;
	ui_绘制模板_行文本绘制	m_文本绘制;
	ui_绘制模板_图标		m_图标绘制;

	C_Widget* m_文件页面;
	std::vector<C_Widget*> m_最近文件;


	C_Widget* m_捐款按钮_B站;
	C_Widget* m_捐款按钮_爱发电;


};




void f_随机切换画心纹理(C_照壁文件页面* box);

